package com.woniu.bh.common.core.domain.customer;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxb
 * @since 2020-10-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bh_members")
public class Members implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 会员id
     */
    @TableId(value = "members_id", type = IdType.AUTO)
    private Integer membersId;

    /**
     * 顾客id
     */
    private Integer customerId;

    /**
     * 会员等级 1普通 2高级
     */
    private Integer membersStage;

    /**
     * 购买的服务 0无服务购买 1季度服务  2年度服务
     */
    private Integer membersServicespurchased;

    /**
     * 服务购买时间
     */
    private Long membersServiceStarttime;

    /**
     * 购买的季度/年度服务结束时间
     */
    private Long membersServiceEndtime;

    /**
     * 会员积分
     */
    private Integer membersScore;

    /**
     * 会员累计积分
     */
    private Integer membersTotalScore;


    /**
     * 会员权益种类id
     */
    private Integer membersRightsAndInterestsId;

    /**
     * 会员免费服务次数
     */
    private Integer membersRightsServiceTimes;


}
